#pragma once
#include "DisplayItem.h"

class DisplayContext;
class ImageDisplayItem:public DisplayItem
{
public:
	ImageDisplayItem();
	~ImageDisplayItem();
public:
	float X;
	float Y;
	float Width;
	float Height;

public:
	virtual void Render(DisplayContext &dislpayEngine) override;
	virtual void Create(DisplayContext &dislpayEngine) override;
	void SetSource(Windows::Storage::StorageFile^ file);
protected:
	bool m_isImageLoaded;
	Windows::Storage::StorageFile^ targetImageFile;
	Microsoft::WRL::ComPtr<ID2D1Bitmap> renderImage;
};

